/*
 * Temperature
 * 
 * Copyright 2008-2009 Centro Andaluz de Innovación y Tecnologías de la
 * Información y las Comunicaciones (CITIC). All Rights Reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
 *
 * Please contact CITIC - Edificio CITIC, C/ Marie Curie, 6 Parque
 * Tecnológico de Andalucía 29590 - Campanillas, Málaga, Spain
 * or visit www.citic.es, if you need additional information or
 * have any questions.
 */

package es.citic.puedes.weatherservice.model;

public class Temperature {
	private Integer tempMaxC;
	private Integer tempMinC;
	private Integer tempMaxF;
	private Integer tempMinF;

	/**
	 * Empty constructor
	 */
	public Temperature() {
		this.tempMaxC = null;
		this.tempMinC = null;
		this.tempMaxF = null;
		this.tempMinF = null;
	}

	/**
	 * Constructor with parameters
	 * 
	 * @param tempMaxC
	 *            maximum temperature ºC
	 * @param tempMinC
	 *            minimum temperature ºC
	 * @param tempMaxF
	 *            maximum temperature ºF
	 * @param tempMinF
	 *            minimum temperature ºF
	 */
	public Temperature(Integer tempMaxC, Integer tempMinC, Integer tempMaxF,
			Integer tempMinF) {
		this.tempMaxC = tempMaxC;
		this.tempMinC = tempMinC;
		this.tempMaxF = tempMaxF;
		this.tempMinF = tempMinF;
	}

	/**
	 * Get maximum temperature ºC
	 * 
	 * @return tempMaxC maximum temperature ºC
	 */
	public Integer getTempMaxC() {
		return this.tempMaxC;
	}

	/**
	 * Get minimum temperature ºC
	 * 
	 * @return tempMinC minimum temperature ºC
	 */
	public Integer getTempMinC() {
		return this.tempMinC;
	}

	/**
	 * Get maximum temperature ºF
	 * 
	 * @return tempMaxF maximum temperature ºF
	 */
	public Integer getTempMaxF() {
		return this.tempMaxF;
	}

	/**
	 * Get minimum temperature ºF
	 * 
	 * @return tempMinF minimum temperature ºF
	 */
	public Integer getTempMinF() {
		return this.tempMinF;
	}

	/**
	 * set maximun temperature ºC
	 * 
	 * @param tempMaxC
	 *            maximun temperature ºC
	 */
	public void setTempMaxC(Integer tempMaxC) {
		this.tempMaxC = tempMaxC;
	}

	/**
	 * Set minimum temperature ºC
	 * 
	 * @param tempMinC
	 *            minimum temperature ºC
	 */
	public void setTempMinC(Integer tempMinC) {
		this.tempMinC = tempMinC;
	}

	/**
	 * Set maximum temperature ºF
	 * 
	 * @param tempMaxF
	 *            maximum temperature ºF
	 */
	public void setTempMaxF(Integer tempMaxF) {
		this.tempMaxF = tempMaxF;
	}

	/**
	 * Set minimum temperature ºF
	 * 
	 * @param tempMinF
	 *            minimum temperature ºF
	 */
	public void setTempMinF(Integer tempMinF) {
		this.tempMinF = tempMinF;
	}

	public String toString() {
		return getTempMinC() + "-" + getTempMaxC();
	}
}
